package com.eeepay.eeepay_v2.adapter;

import android.content.Context;

import com.eeepay.eeepay_v2.R;
import com.eeepay.eeepay_v2.model.TradeCollectModel;
import com.eeepay.v2_library.adapter.ABBaseAdapter;
import com.eeepay.v2_library.adapter.ABViewHolder;

import cn.eeepay.api.grpc.nano.TransProto;

/**
 * Created by zw on 2016/5/4 0004.
 * 汇总列表适配器
 */
public class TradeCollectListAdapter extends ABBaseAdapter<TransProto.AggregateInfo>{

    public TradeCollectListAdapter(Context context) {
        super(context);
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_three_text;
    }

    @Override
    public void convert(ABViewHolder holder, TransProto.AggregateInfo model) {
        holder.setText(R.id.tv_left, model.bpName);
        holder.setText(R.id.tv_center, model.cnt);
        holder.setText(R.id.tv_right, model.sumAmount + "元");
    }
}
